//
// Created by lujun on 2023/11/16.
//

#include <stdio.h>
#include <string.h>

int main() {
	FILE *fp = NULL;

	fp = fopen("text1.txt", "w+");

	for (int i = 0; i < 26; i++) {
		fputc('a' + i, fp);
	}

	fseek(fp, 0, SEEK_SET);

	for (int i = 0; !feof(fp) ; i++) {
		char temp = fgetc(fp);
		printf("%c ", temp);
	}

	fclose(fp);
	return 0;
}